package com.info.zhiduoduo.repository.entity.invoice;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("zdd_invoice_company_inventory")
public class CompanyInventory extends Model<CompanyInventory> {


    /**
     * 企业id
     */
    @TableId(value = "company_id", type = IdType.INPUT)
    private Integer companyId;
    /**
     * 专票一万元版
     */
    @TableField("spe_ten_thousand")
    private Integer speTenThousand;
    /**
     * 专票十万元版
     */
    @TableField("spe_hundred_thousand")
    private Integer speHundredThousand;
    /**
     * 普票一万元版
     */
    @TableField("gen_ten_thousand")
    private Integer genTenThousand;
    /**
     * 普票十万元版
     */
    @TableField("gen_hundred_thousand")
    private Integer genHundredThousand;

    private Date createtime;
    private Date updatetime;




    @Override
    protected Serializable pkVal() {
        return this.companyId;
    }
}
